//
//  electricityOneViewController.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/7/8.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "electricityViewController.h"

@interface electricityViewController ()
@property (strong, nonatomic) IBOutlet UIView *navView;
@property (strong, nonatomic) IBOutlet UIScrollView *scroview;
@property (strong, nonatomic) IBOutlet UITextField *accountLabel;
@property (strong, nonatomic) IBOutlet UIButton *queryButton;

@end

@implementation electricityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
    [self initViewLayout];
}

- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    [self adaptiveViewLayout:self.scroview];
    
    _scroview.contentSize = flexibleSize(CGSizeMake(0, 505), NO);
    
    _queryButton.layer.cornerRadius = 20*VerticalRatio();
}


- (IBAction)back:(id)sender {
    [self.navigationController  popViewControllerAnimated:YES];
}

#pragma mark - 查询
- (IBAction)query:(id)sender {
    UIStoryboard *secondStroyBoard=[UIStoryboard storyboardWithName:@"HomeStoryboard" bundle:nil];
    UIViewController *page = [secondStroyBoard instantiateViewControllerWithIdentifier:@"electricityQueryOne"];
    [self.navigationController  pushViewController:page animated:YES];
}


@end
